// @ts-nocheck
// 首字母大写

// -----------

// export type CapitalizeString<T> = T extends string ? `${Capitalize<T & string>}` : T
export type CapitalizeString<T> = T extends `${infer L}${infer R}` ? `${Capitalize<L>}${R}` : T
type a1 = CapitalizeString<"handler">;
type a2 = CapitalizeString<"parent">;
type a3 = CapitalizeString<123>;

export {}